import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";

// 安装vant2 和样式
import Vant from "vant";
import "vant/lib/index.css";

// 使用vant
Vue.use(Vant);

// 导入通用样式
import "@/style/common.less";

Vue.config.productionTip = false;
// 注册一个带自动聚焦的全局指令
Vue.directive("focus", {
  inserted(el) {
    el.focus();
  },
});
new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount("#app");
